package com.yao.shop.service;

import com.yao.shop.common.Page;
import com.yao.shop.pojo.ShopProductHistory;

import java.util.List;
import java.util.Map;

/**
 * @Author: 杨德石
 * @Date: 2020/12/18 21:14
 * @Version 1.0
 */
public interface ShopProductHistoryService {

    /**
     * 保存
     * @param shopProductHistory
     */
    void save(ShopProductHistory shopProductHistory);

    /**
     * 清空历史记录
     */
    void clearHistory();

    /**
     * 分页查询
     * @param page
     * @return
     */
    Map<String, List<ShopProductHistory>> getByPage(Page<ShopProductHistory> page);
}
